<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>CREDISEGUROS</title>
    	<link type="text/css" href="${contextPath}/resources/js/extjs-4.0.1/resources/css/ext-all.css" rel="stylesheet" />
    	<link type="text/css" href="${contextPath}/resources/css/stylesheet.css" rel="stylesheet" />
    	
    	<style type="text/css">
    		div .main-panel{
    			overflow: auto;
    		} 
    	</style>
    	
		<script type="text/javascript" src="${contextPath}/resources/js/extjs-4.0.1/bootstrap.js"></script>
    	<script type="text/javascript" src="${contextPath}/resources/js/locale/ext-lang-es.js"></script>
    	<script type="text/javascript" src="${contextPath}/resources/js/seguros/javascript.js"></script>
    	<script type="text/javascript" src="${contextPath}/resources/js/seguros/aseguradora/AsgSeguros.js"></script>
    	<script type="text/javascript" src="${contextPath}/resources/js/seguros/aseguradora/Viewport.js"></script>
    	<script type="text/javascript">
    		Ext.onReady(function(){
    			Ext.tip.QuickTipManager.init();
    			Asg.constants.CONTEXT_PATH = "${contextPath}";
    			AsgSeguros.setAsgClienteId(<c:out value="${requestScope.asgClienteId}" default="null" />);
    			if(Ext.get("message")){
        			Efx.message.alert(Ext.get("message").dom.innerHTML.toString().trim());
        		}
    		});
    	</script>
    	<decorator:head></decorator:head>
	</head>
	<body>
		<page:applyDecorator name="header"/>
		<decorator:body></decorator:body>
		<c:if test="${not empty requestScope.message}">
		<div id="message" style="display: none;">${requestScope.message}</div>
		</c:if>
	</body>
</html>